#ifndef MINELAND_H_
#define MINELAND_H_
#include <QDialog>
#include "mineButton.h"
#include <QLabel>
#include <QLCDNumber>

class mineLand:public QDialog
{
    Q_OBJECT
private:
    int levels;
    QList<mineButton*> mines;
    QList<int> type_button;
    int probability;

    QLabel *emoctionLabel;
    QLabel *timerLabel;
    QLabel *timerName;
    QLabel *boomCnt;
    QLabel *scoreLabel;
    QLCDNumber *lcdNum;
    QLCDNumber *lcdNum2;
    bool showColon;
    void nus(){ probability = 225 / levels; }

public:

    static int staticTime;
    int winTime;
    int lostTime;
    int surplus;

    mineLand(QWidget* parent = 0);
    void create_mine();

signals:
    void win();
    void lost();
public slots:
    void show_empty(int);
    void winner();
    void loster();
    void new_game();
    void set_level(int);
    void showTime();

};
#endif
